home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3846 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: tucson.princeton.edu!miker
  2. From: miker@tucson.princeton.edu (CIT Information Centers)
  3. Newsgroups: comp.lang.c
  4. Subject: compiling- gcc v.s. cc
  5. Date: 31 Jan 1996 05:43:34 GMT
  6. Organization: Princeton University
  7. Distribution: world
  8. Message-ID: <4emvi6$j4@cnn.Princeton.EDU>
  9. NNTP-Posting-Host: tucson.princeton.edu
  10.  
  11.  
  12. I am a mathematician and have written most of my C programs
  13. for my own use. Unfortunately, I now need to make a program of mine
  14. available to the world and have some questions.
  15.  
  16. 1) Is the GNU C compiler (gcc) a standard compiler that most unix
  17.    users have at their disposal?
  18.    The reason I'm asking is because I want to provide instructions 
  19.    for compiling my program. I've been using gcc and it works fine.
  20.    I experimented with cc but did did not get consistent results.
  21.    On an SGI it compiled fine (both with gcc and cc), but not on 
  22.    Sun-4 it only compiled with gcc and not with cc (cc produced
  23.    a lot of error messages which seem to be connected to the
  24.    way I declared my functions. I use prototype form as opposed
  25.    to traditional form).
  26.  
  27. this brings me to question...
  28.  
  29. 2) Why would a program compile fine with cc on one machine but not on 
  30.    another?
  31.  
  32. 3) What's the difference between cc and gcc? 
  33.  
  34. 4) Is there a good web site that answers any of these questions?
  35.  
  36. Michael Rubinstein.
  37.